#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpServer>
#include<QLabel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:

    void on_pushButton_clicked();

    void on_connecttosever_clicked();

    void on_disconnect_clicked();

private:
    QTcpSocket*socket;
    Ui::MainWindow *ui;
    QTcpServer*tcp_s;
    QLabel *connection_status;
};

#endif // MAINWINDOW_H
